package com.firesrc.dao.impl;

import java.util.List;

import jodd.db.DbThreadSession;
import jodd.db.oom.DbOomQuery;

import com.firesrc.bean.ExceptionLog;
import com.firesrc.dao.ExceptionLogDao;
import com.firesrc.dao.SuperDao;

public class ExceptionLogDaoImpl extends SuperDao<ExceptionLog> implements ExceptionLogDao {
	@Override
	public List<ExceptionLog> getAllList(ExceptionLog t) {
		DbThreadSession dbThreadSession = new DbThreadSession(cp);
		DbOomQuery query = new DbOomQuery("select * from exceptionLog  order by createTime desc");
		List<ExceptionLog> list = query.list(ExceptionLog.class);
		dbThreadSession.closeSession();
		return list;
	}
}
